package com.android.pocketguru;

import java.util.Random;

import android.content.Context;

public class Phrases
{
	public static int GetRandomPhraseId(Context context)
	{
		
        String[] phrases = context.getResources().getStringArray(R.array.Phrases);
        Random r = new Random();
        
        return r.nextInt(phrases.length);
	}
	
	
	public static String GetPhraseById(Context context, int phraseId)
	{
		if (phraseId ==  -1)
			return "";
		
		String[] phrases = context.getResources().getStringArray(R.array.Phrases);
        return phrases[phraseId];
	}
	
}
